import os
import shutil

import pytest

if __name__ == '__main__':
    pytest.main()
    shutil.copy('./environment.xml', './report/temp')
    # allure serve <allure-results> 在默认浏览器中显示生成的报告
    os.system(f'allure serve ./report/temp')
